package com.moranyunxi.www;

import org.jsoup.Jsoup;

import java.io.IOException;

public class JsoupUtil {
    public static String parsePage(String url) {
        String dataSrc = url;
        //获取网页内容
        String jsonStr = "";
        try {
            jsonStr = Jsoup.connect(dataSrc).ignoreContentType(true).execute().body();
        } catch (IOException ex) {

        } finally {
            return jsonStr;
        }
    }
}
